package com.ruoyi.mall.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mall.mapper.MallMemberUserDistributorMapper;
import com.ruoyi.mall.domain.MallMemberUserDistributor;
import com.ruoyi.mall.service.IMallMemberUserDistributorService;

/**
 * 分销商列Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-15
 */
@Service
public class MallMemberUserDistributorServiceImpl implements IMallMemberUserDistributorService 
{
    @Autowired
    private MallMemberUserDistributorMapper mallMemberUserDistributorMapper;

    /**
     * 查询分销商列
     * 
     * @param id 分销商列主键
     * @return 分销商列
     */
    @Override
    public MallMemberUserDistributor selectMallMemberUserDistributorById(Long id)
    {
        return mallMemberUserDistributorMapper.selectMallMemberUserDistributorById(id);
    }

    /**
     * 查询分销商列列表
     * 
     * @param mallMemberUserDistributor 分销商列
     * @return 分销商列
     */
    @Override
    public List<MallMemberUserDistributor> selectMallMemberUserDistributorList(MallMemberUserDistributor mallMemberUserDistributor)
    {
        return mallMemberUserDistributorMapper.selectMallMemberUserDistributorList(mallMemberUserDistributor);
    }

    /**
     * 新增分销商列
     * 
     * @param mallMemberUserDistributor 分销商列
     * @return 结果
     */
    @Override
    public int insertMallMemberUserDistributor(MallMemberUserDistributor mallMemberUserDistributor)
    {
        return mallMemberUserDistributorMapper.insertMallMemberUserDistributor(mallMemberUserDistributor);
    }

    /**
     * 修改分销商列
     * 
     * @param mallMemberUserDistributor 分销商列
     * @return 结果
     */
    @Override
    public int updateMallMemberUserDistributor(MallMemberUserDistributor mallMemberUserDistributor)
    {
        return mallMemberUserDistributorMapper.updateMallMemberUserDistributor(mallMemberUserDistributor);
    }

    /**
     * 批量删除分销商列
     * 
     * @param ids 需要删除的分销商列主键
     * @return 结果
     */
    @Override
    public int deleteMallMemberUserDistributorByIds(Long[] ids)
    {
        return mallMemberUserDistributorMapper.deleteMallMemberUserDistributorByIds(ids);
    }

    /**
     * 删除分销商列信息
     * 
     * @param id 分销商列主键
     * @return 结果
     */
    @Override
    public int deleteMallMemberUserDistributorById(Long id)
    {
        return mallMemberUserDistributorMapper.deleteMallMemberUserDistributorById(id);
    }
}
